package com.example.demo.error;

/**
 *
 * 错误信息类
 *
 * @author itloser.info
 * @date 2021/9/10
 */
public class ErrorInfo<T> {

    public static final int SUCCESS = 200;//表示正常
    public static final int ERROR = 100;//表示异常

    int code;
    String message;
    String url;


    T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}
